x86/PoD: shorten certain operations on higher order ranges
authorJan Beulich <jbeulich@suse.com>
Tue, 29 Sep 2015 13:11:28 +0000 (15:11 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 29 Sep 2015 13:11:28 +0000 (15:11 +0200)
commitdea4d7a9a847e8822f7fbfd7b143a5e203135179
tree3e6094f67c96407bbde40d9d3bac2f3909fcd1ff
parentc0a85795d864dd64c116af661bf676d66ddfd5fc
x86/PoD: shorten certain operations on higher order ranges

Now that p2m->get_entry() always returns a valid order, utilize this
to accelerate some of the operations in PoD code. (There are two uses
of p2m->get_entry() left which don't easily lend themselves to this
optimization.)

Also adjust a few types as needed and remove stale comments from
p2m_pod_cache_add() (to avoid duplicating them yet another time).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/p2m-pod.c